package com.yesido.spring.aop.controller;

import com.yesido.spring.aop.Idempotent;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yesido
 * @description
 * @date 2023-06-24 22:04
 * @Version 8.3
 */
@RestController
@RequestMapping("/aop")
public class MyController {

    @Idempotent(value = "test1")
    @GetMapping("/myMethod")
    public String myMethod() {
        return "Hello, World!";
    }
    @Idempotent(value = "test2")
    @GetMapping("/myMethod2")
    public String myMethod2() {
        return "Hello, World!";
    }
}
